package com.gxa.orderManagement.controller;

import com.gxa.common.R;
import com.gxa.common.entity.orderManagement.OrderFinder;
import com.gxa.orderManagement.service.OrderManagementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
@CrossOrigin
@RestController
public class OrderManagementController {

    @Autowired
    private OrderManagementService orderManagementService;

    @RequestMapping(value = "/findOrdersByOrderFinder" ,method = RequestMethod.GET)
    public R findOrdersByOrderFinder(OrderFinder orderFinder){
        return orderManagementService.findOrderPages(orderFinder);
    }

}
